package com.example.yoho.mvp.model;

import android.util.Log;

import com.example.lib_core.network.RetrofitManager;
import com.example.yoho.mvp.contract.RegisterContract;
import com.example.yoho.mvp.model.entity.RegisterEntity;

import javax.inject.Inject;

import io.reactivex.Observable;

public class RegisterModel implements RegisterContract.Model {
    @Inject
    public RegisterModel() {
    }

    @Override
    public Observable<RegisterEntity> registerModel(String request) {
        return RetrofitManager.getInstance().getRetrofit().create(AppApi.class).registerRequest(request);
    }

    @Override
    public void onDestory() {

    }
}
